<h2><?php echo __('New Contacts') ?></h2>
<ul class="action-mn">
	<li><a href="#" class="mark_readed"><?php echo __('Mark readed') ?></a></li>
	<li><a href="#" class="mark_replied"><?php echo __('Mark replied') ?></a></li>
</ul>
<table cellpadding="0" cellspacing="0" class="table-listing">
	<tr>
			<th class="col-no">
				<input type="checkbox" id="check-all" title="<?php echo __('Check All') ?>" class="rcheckbox" />
			</th>
			<th><?php echo __('Name') ?></th>
			<th><?php echo __('Content') ?></th>
			<th><?php echo __('Status') ?></th>
	</tr>
	<?php if(isset($contacts) && count($contacts) > 0){ ?>
		<?php foreach($contacts as $i => $contact){ ?>
		<tr>
			<td><input type="checkbox" class="check-item" /></td>
			<td><?php echo $contact['Comment']['name'] ?></td>
			<td><?php echo $contact['Comment']['content'] ?></td>
			<td><span class="act-lk" onclick="replyContact(<?php echo $contact['Comment']['id'] ?>, '<?php echo $this->Html->url(array('action' => 'replyContact', 'controller' => 'backend')) ?>');"><?php echo __('Reply') ?></span></td>
		</tr>
		<?php } 
		}else{
	?>
		<tr>
			<td colspan=4><?php echo __('No Records') ?></td>
		</tr>			
	<?php } ?>
</table>

